Skip to content

🎨 Palette: Enhance V2 navigation rail accessibility and delight#86

Merged
godie merged 1 commit intomasterfrom
palette/v2-navi-ux-improvement-3576218090307781981
Apr 8, 2026
Merged

🎨 Palette: Enhance V2 navigation rail accessibility and delight#86
godie merged 1 commit intomasterfrom
palette/v2-navi-ux-improvement-3576218090307781981

Conversation

@godie
Copy link
Copy Markdown
Owner

@godie godie commented Apr 6, 2026

🎨 Palette: V2 Navigation Rail UX Enhancement

This PR introduces a series of micro-UX improvements to the ENARM V2 navigation rail, focusing on accessibility, functionality, and "delight."

💡 What

  • Functional Branding: The navigation logo is now a Link pointing to /v2/dashboard.
  • Intelligent Theme Toggle: The toggle now uses React state to correctly synchronize its icon (dark_mode vs light_mode) and its aria-label/title ("Cambiar a modo oscuro" vs "Cambiar a modo claro") with the document's actual theme.
  • Micro-Animations: Added CSS transitions to the theme toggle button for scale effects on hover and a rotation effect on click.
  • Robust Testing: Expanded V2Navi.test.jsx to cover the new logo link and the dynamic theme toggle behavior.

🎯 Why

Standardizing navigation patterns (like a clickable logo) makes the app more intuitive. Providing clear, localized feedback on state-changing buttons (like the theme toggle) improves both the perceived quality and the accessibility for screen reader users.

♿ Accessibility

  • Added aria-label and title to the brand logo link.
  • Implemented dynamic, context-aware aria-label for the theme toggle.
  • Ensured decorative icons are hidden from screen readers.

✅ Verification

  • All unit tests in V2Navi.test.jsx pass.
  • Verified visual behavior and state synchronization with a Playwright script.
  • Linting is clean.

PR created automatically by Jules for task 3576218090307781981 started by @godie

This commit improves the V2 navigation rail (V2Navi) by:
- Converting the brand logo from a static div to a functional Link to the dashboard.
- Implementing dynamic state for the Theme Toggle to update icons (dark_mode/light_mode) and ARIA labels based on the active theme.
- Adding micro-animations (scale and rotation) to the Theme Toggle for a more tactile and delightful experience.
- Improving accessibility by adding descriptive aria-labels and titles to the logo and theme toggle.
- Updating and expanding unit tests to verify the new functionality.
- Updating Palette's journal with learnings from this task.

Co-authored-by: godie <227743+godie@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@godie godie merged commit c074437 into master Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant